fix binarymap interface which was broken lately.  shoudnt be rocket sicence.  sheehs
fix len
add index