changed the execution method to be a temporary file which is imported, instead of a simple exec. Done because of the restrictions of exec, and the undefined behaviour of exec, which really gives hiccups