fixing up permissions