refactoring prompts, outputs, commands, and command managers