added a context-insensitive path builder variant