refactored options hash for http request