trying to add input capability, failing so far. wanted a separate commit with changes so far