add master selector thread