separated stderr and stdout; introduced stdin support
separated stderr and stdout; introduced stdin support