adding unsigned char flags as discussed in #86