fix signatures to accept strings in all places where we also accept URLs