started building subresource code