fix for pyramid 1.5