event base, for pyramid