added console message when input file is invalid