debug script for input fields