added client side time check