refactor
add /server/ support
add /metric/ support