using a config instead of hard coded url