must initialize all parts of flags field