debug the name field. will break
redo basic type checking