moved all type converters into the api module