improve map_editor