wrap references in api