needs more flexibility defining the url