pring error message in verbose mode for debugging
minor hack in argument printing
fix getPgmOptions bug
add comment for a hack