refactor and remove redisPool (wharehouse instead)