add code to actually execute dispatcher