add server-mode