bm_write_uint32 implemented