refix public api calls, add index file