add more printfs for debugging