change file to handle sessions