generate index on boot