added stderr piping to output