move globals to predef