added check for valid input uv files