emulate stdin using <<<