introduce the debug parameter for server object
optimize the MVC Router part