debugged inputter, now works