improved performance by building uri without parsing uri