fixing bug around datatypes + updating generator to avoid this in the future + adding more async restmanager calls