allow passing in multiple prefs
add test for passing in multiple prefs