fixed riak, added logging