threading to scan for masters