added code for EPIC integration