correct literal string flags enum and use it as type