flex foundation