modified core source code into one file