initial version calling local api