feat(core): set correct header for writekey