fixed wrong arg order bug in permissions and updates