(from a thread starting here)