configurable clean stream for native programs