rework pika imports in adapter