mapedit work

-various fixes