Revert "re detector"

This reverts commit 1e81648539f30a4c898d39382820c955d244d120.