add putPermission getPermission methods and permission object