first pass at api