Adding new way to take configration

making request more granular and adding tests