I can't see where active gets set to true..  which is checked in scan()