added and debugged captchaManager