fix typo, add file name to errors