add res name and some other change
fix error