add check for input file path