added a "timeout" handler