change results dirs to ids