add more logging and threshold change