added a 'terms' function
permissions added