fixed error on new definitions
added basic structure for vartable checks