bit of refactoring method to combine set_parser and main script, clean up tasks a bit