bugfix: will accept input from stdin