unique names

define type now requires resource names to be unique