fix privilages issues