first version of public api