adding errors and purecatcher