improve import url validation