fixed depth replacing condition
Merge remote-tracking branch 'sebastian/master'
adding support for links with multiple visuals, cleaning up debug output