Improved errorhandling & autoloading configuration