moved redis hostname to the parameter