got logging functionality working for all handlers