added use globals opt