add stream debug print