globals are being set at exec but not for compile