thread interrupt condition added