fixed naive use of uri from payload