added better logging for operational purposes