update amberc to use the new 'globals' variable

@herby could you have a look please?