started adding input
initial input support
merging with head