handle file name and path