register hook for custom autoloader