change logging to match script