fixed some linking