core and flex