callback functions for dispatcherWrapper command queue now receive the command as an input.