worked through the option parsing and added support for http error code dection