rewrite map.on/off