changed parse_args from function to class for a cleaner api