update core code