added functionality for autoloading and autoupdating