added logging in Purifier