impl some mstream interfaces