fix flags for removing source/dest

need to put them in [], else the strings get split into characters...
delete extroneous target files

and ad-hoc create thread-safe callback