more fixes to Pyramid