fixed some more permission issues