closes #1, be able to pipe from stdin