changed rpc callback into bus callback