cores: rm patches, add source files