Add header and fix cookie loader