changes to allow recipient "type" to be added