path spaces and groupoids