cleaning up stdout