use the correct size for bitmap values, long is 64 bit here
use inttypes to avoid ambiquity