moved mapwidth/height to datamanager