WIP: now on the IO thead, still wrong