permissions update and a lot of other stuff