add system call handler