get file funct tested and working when file is local