reusing code for single dataset and multi datasets and adding fake search capability