One step further perhsp for consideration down the road  'host' as a data type... and do all this behind the scenes. Assume the app key containing the host also contains the ipv preferences.  But maybe that's just crazy talk.