Allow both digits and url; remove unused import