pull in the sendak riak tool and make it more general