globals must be provided in an array