add raven and some global variables to BB