added open system call