get the correct logs and remove color codes