cleaned up detect_old_config() code and it will run on each __init__

added 'generate_missing' to __init__