abstracted out CommandBox, fixed task removal error