fix when only one idat pair exist
Move folder configs to config.R