got most of mapeditor working again