[ugly hack] map editor -- needs cleaning at some point