change system call to take params