finished simple system calls