add default :name attribute to resource def