introduced exceptions in cookie module