try catch around file operations
select file complete