made calling flexie more modular
renamed grid for better modularity