modify func define and fix router bug