added cookie detector/redirector