init server first