threading to scan for masters
broken
fixed a lot of threading issues
mergin