moved credentials to config operation and supported environment variables