rough sketch/test of api