class autoloading and other common tasks