map: add unmap

and correctly calc map size