Revert "add scan support"

This reverts commit 21f03fdb8b915884f995c94da69e8ff164d77303.