some emr improvements, change in interfaces