make logging more secure