add packrat mode check to session utils