started refactoring handManager