allow flatten delimiter to be specified