turn all modules into user defined types