more error handling tweaks, including of docs files