change server run mode