update routing configuration
remove sample code and add register feature