added cookie grabbing tricks