gaia project code file structure optimize