add log for debugging
update to 0.6 SNAPSHOT,support cookie and speed control