added ability to localize the map (parameter l)