adding flags for deprecation and unchecked