Revert "using stdin"

This reverts commit 1a4bd36763326d7a6fe95d9b4968f4d4524aa65e.