add server side searching and sorting prelim work