updates to thredis implementation.