allow building resource by reading the instance data to avoid always needing to manually specify parameters