adding support for environment variables for redis connection