changed timeout impl and debug message