changes for logging