adding in link IDs now to get ready to dump them to the optimization