API CHANGE: allow urls as well as files