cleaning the execution process and adding missing files