refactored server router for rerouting
typeo fix server module reroute