small refactoring of the trail package (TrailingQueue and Trailed)