[IMP] move dispatch()'s post processing code into a method