fix #53 - check to see whether file exists