added sdk back to generate cookie