setting session header throws a notice when running in cli mode