put stdin-read inside run-through loop, exclude stdin from master