making stdout reconfigurable