clean up command line args, email in error case
add a dry run mode