improve error handling
command processor infrastructure