refactor(protect): incorporating raft with core resource