added licenses and reverse the hierarchy of the resource proxy