remove legacy permissions