fixed how the timeout works, so it can be used in development