the err message is not useful. at least add src and target dir (and move the assignmnet out of the try block)