- updated workdir
- added TryCatch cursor