add debugging for production testing