break out survey data lookup function
fold lookup functions back together