use correct cache shim package
made changes to
- handle invalid xpath expression exceptions efficiently
- reduced the path length for scaffolding to avoid problems due to long path names