more initial work for server