Added debug for io permissions