added autorejoin module, and improved module loading