working ticker
simplify sleeping and make it second based only