refactor bidManager