added check to make sure redis is running at startup