removed pointless stuff, added missing permissions