conditional reference depending on environment