more cleanup of build process. fixed a percentage index issue in grid framework.