core and demo