add generic resource class