resolve merge conflicts of 7b872f82f4 to nyc-dev
Test: this test passes

Change-Id: I6b27e51fd9a6592b3371d994d25ccca4a226d31c