improove server id generation