added support for multiple encryption providers