changed level of errors to make them point to correct location