added basic api method