change adapters to use pipelines and not publishers. remove castle adapter for now