check for file.contents, closes #49