move http timeout to a variable