[bearermanager] total refactoring