prepare for system call