assign entityRef befor init of extension for easier adjustments