implement 'server' command.