singularize directories