removed old code
add support for multiple targets in pipes.publishTo