update codes to the new format of modules