add measure API