added finer-grained error messages to measurement version