finished up stubbing out the API bit, more or less