updated to make Trails optional