added scratch location for emr