first bmap stuff