add some resource, fix some error