better logging, fixed program argument formats