catch errors for inaccessible files
added constructor, use w3c setProperty/getPropertyValue