re-implement config object correctly instead of concat url string