first calls the capsule specific before hook