switch system call to os.system