fix adding provider
Added support for simple providers