generalizing get/set with parameter packs