first step to ofline mode compilable but not finished