set 0 to file->flags by default
cosmetic changes