adjust timeout behavior