updated with some options objects to pass a user agent header