move core files to extension