added bitwise flag for missing data