added logging to gen chunks