YO api added, API function calls reformated