pin api fixes