more work on the resource ast