remove extra files, keep the core files