mass permission copy does the same thing, so i don't know why you aren't using that ?