fixed stdout-ing