fixed permissions issues