make timeout actually work