adding url minimal error checking at start