patch for entity outputBy ref