fix small issues and report all errors