updated server instantiation