fix log management