pls check again if rest api usage is needed here