add proto type object for all the global variables
work in progress
clean up