another way to handle stderr