rename file 'Cope.exe', isolate parts of code and added try/catch