break out resource calls to other files
add resource to top level namespace
tmpfile prepends . if none exists
resource on hdf5