merge resource definitions