write index file in boot fn