added some api skeleton code