ip loc parse script