check for empty URL
fix getTempValues logic errors