initial implementation of resource IO (outside of a corpus)