better command opts display for new template
use same command opts display everywhere
split out monitoring helpers
refactor duplicated opt_name() function