added more changes to http and nailgun client