refine timeout