improve map-editor