update core and unit test