issues with logging