add loggings