added functions to get and set restrictions