moved flag definitions to registry.h