fix custom blobs test
stats work in rpc mode
refactor stats