implemented port syscalls