Returned the domain and path tokens to main fn