addResource DRY