move the funcitons from default model to demo sdk model