finish the dispatcher