fixed some errors to be nonfatal