default encoding to default, not unicode.
big update for input.  added baseinput and polymorphic children.