logging causes all the bugs