pin api fixes
pin api fixes