refactored autoreconfiguration to work with new API