first version of using bmp
fixes