add build mode