http://wanghaopk.iteye.com/blog/1218009
cook.setpath():
http://www.cnblogs.com/tianguook/archive/2013/11/30/3451609.html