fixing permission issues