optimized mesh + lightning