updated to use version *1.2* of emrapi