updating file handling