fix addlinks to check for autoload existence