merge logging and tainting phases