only submit to pvoutput if data looks ok
better connection script