new code architecture for getting information from path in url