add curtime protection