adding fn to return assoc array of parsed data via callback