scanner plugin almost working now.