fixed various bugs that prevented nestedresource calls