extract core
fix many things
index.html