cookie, xhr and random modules