update core and add cors module