adding flags for context