added old Riak code