add putPermission/getPermission and permission object