add a function to flatten selected fields from a packageDescription obect