before switching to dict
moved to dict, haven't tested - added ability to run commands without dropping to shell, or run commands and then drop to shell