added checking and setting of extended attribute flag