updates references to modules