add globals from inside codegen