deal with possible chmod rights issues