added role testing. Disabled new cookie catching.