cleanup global.R