code cleansing log user activity