auto change resourcename