change analyzer constructor to take options hash.