minor changes to the bmp-parser code