fixed all the gorram linkage errors