added translate for default types
added a few improvements