set up and parse input options