almost finish the core app.