refactored configuration specs and related classes