added a sequence counter for borrowing borids