upload core code