better logging and command line args