fix for require flex-scopes