refactor manager