format code
add url check exist