syscall wrapper almost done