refactoring to Tmx.Server