auto-linking for functions