major update - add rest api