throws autoload_functions on exception