hacked in stdin support
added stdin support, improved with switch