adapt dispatch refactoring for cephes namespace