making ##reference optional

this simplifies integration with EG pipelines