added server init to controller