fixing bug causing redis server not to start
refactoring way requires happen