added function to build response struct for refresh requests