added several modules and variables, plus features exports and grant permissions