fixed issues with logging callbacks