adding splitting stdio