adding check to see if a session has a file