updated logic for config tool