cleaned up index to use autoload