logging change
shogun function in logging and minor changes