added basic api for pinaple