use io/resource
refactor. save output json with new paths
rename paths for serving