set timeout via method, otherwise it is not defined
set Host field otherwise it was going to default vhost
changed values in array as originally they was defined in wrong order