r3051: added logging