added environ support for creds