reformatted url structure by passing in stats key/value

Signed-off-by: Nathanael Burt <nathanael.burt@gmail.com>