switch away from $ref or dataType to simply use type