hopefully fixed linking bug