adding timeout to monitor state