changed config & logging conditions