make resourcename show up right.