avoid Too late for parseStaticFlags: call it before newSession