trimmed down troubleshooting version.