kpto stub and test
writer: threads->forks
various fixes