added field check for path and url