init core and hmi