wip for pyramids. Tests missing.