fix dispatcher creation and fix some doc