make input flexible
Merge pull request #3 from koron/flexible-reader

make input flexible