fix to implementing OptionsProviderInterface