working on this stupid bitmap parser