correction to use f->_flag as octal numbers