automatically extract lien's policy and build api