join reimplemented to only flatten one level deep.