some bugfixes inserted regarind link types and their handling