exception and log management