added environment variable credentials support