link API, missing bits from previous commit