fix for pyramid 1.4 usage