add light logging of failures. use expand-file-name everywhere