added support for local secrets