refactor disk io manager