clean up terminal mess