added close/read/write syscalls