utility for PATH-like list manipulation