[server] refactor
[server] implement multiple listeners