adding timeouts to monitor states