support user input from stdin
wip