updated to use autoload instead of load, to avoid deprecation warnings