first version of digital input checking code
latest alf