Added prelimanry uri support and debugging fucntions.

Signed-off-by: tfliu <thomasliu02@gmail.com>