scan link works again after refactoring