add register method of textures, fix generator, fix more other