minor updates to bmp.c