add stderred (hardly tested!)