code cleanup, library events are now able to be logged