make MapPLZ code work