minor adjustment to env session fetch