syscall implementation: work in progress