added get_permission helper