resolve most of the global variables in RAPID
this is the one
still didn't fix the rapid library