made url dynamically featched from config