update to system call wrapper