map generator and loader