use print only in catchError