in refactor plus redis state and a queue