link bugfixes, better logging
little refactoring for links
subtask improvements