make getCommandArray public to make MetaCommands more testable