before system call implementation