remove debugging info and catch nil check