api stream matches d,type to interface fn