need to link after so for refs to be correct.