initial version of API