basic server test
Jha's bugfixes and sys namespace merged with my server code