add debugging right before validation