adding IO accounting. Work in progress