updated flags, need to double check