[server] split setupbackend()