modified provModify to handle cookie/domains better