added a digital input wrapper