start to refactor command/shell relationships

move more functionality into the commands vs shells