better error catching in touchforms