moved connect function into Redis module