work on file input and progress bar