resources either url or file