capsule handler.