adds types and attr's to work with