added option to pass redis client