adding api adaptor