add server selector through hash.
add publisher support