a bit of work on system calls etc.