update resources (chaneg hash syntax and add unique attribute