rework handling of commands, now prefix matches, and handles multiple commands in a single registration