fixed permission issues