initial set of custom commands and some related additions/mods to utils.py