made some corrections that fixed some permission errors