first rough go at an api