added access control functionalities