remove garbage from console and text