I/O layer refactoring finished