slightly smarter breadcrumb handling