collect path manipulations in one place