captured console stderr method fixed