work on system call interface

hacks here and there :)