Mechanisms and causality