session and file management working nicely