add input-tiny, general refactor/cleanup