syscall implementation - work in progress - 1