pull resolve function out of dispatcher class