added pipe processing, but does not work yet