gaia basic pool restructure and optimize.