added globals for require