implementation of map editor helper classes