progress on reading input

trying to emulate fold's actual functionality / handling of args as
possible