merge method_dispatch into dispatch