move getA getD to Config module