refactor - separate method for adding "custom" globals