enable self logging