better server initialization