refactored and updated payload logic
working cookie generator