fixed some permission issues