fix routers bugs

add serverType
Merge pull request #10 from mrFranklin/master

fix routers bug