make  removeAttrNameSpaces ro read directories too