improvement of displaying error messages
correction of including libraries