setup env before serverconf