replaced grep to awk, faster than ever
added xml confirmation so as it avoid XML which is not available yet