changed the timeout type to Duration