finished linking and logging