WIP: log io to file