fix from_url method