clean up stdout