factor out sensor core