changes some permission stuff