got logging re-working