add globals for backwards compatibility