reverted to using cookies