back to previous version - read from stdout