add linput() and a test for it
add dlinput() and a test for it