improvements on redis usage