work on migrating map code to the server

work on #42