Improved path handling with examples