added support for plain old datatypes - not finished yet