fixed the minior linking problems