fixing cookie parser