unfinished.
check for existence of autoload before requiring it.
these moved to hook_exit().