refactor config code, make Radars accept energy uniformly