adding ability to check for record restrictions