logging for troubleshooting.