fixed sleep code to hit sequence correctly. and fixed time offset code
for initting token.