changes to log behavior