split core and app