pyramid: cleanup