Scope attributes cannot be accessed in pre-link fn