changed log mechanism