add the resource, basic function is ok.