added tag support in sdk and persistent cookie support