adapted to new AmmarServer Version