had to change popen to system in order for c5 to work