secure logging modified