more file handling changes for submissions