add logging class improve autoloading