file cleanup, map engine cleanup