added api wrapper and call
reconciled pull conflicts