server: add discovery