Fixed CTPP2 loader to use resource instead of file