added support for piping tasks over stdin