starting on upgrade bug fixing; adding check in message when changing permissionson a block