changed map maker for linux compatibility