put extension also in session file