update main and engine to start testing