added a sleep between popen and cextension so that the outputs don't get mixed up