init server side code and crossover code