use multithread and remove redundancy rest calls