init server with target