logging mechanism
merged