check time events only every 30 seconds
use forkIO instead of forkOS