add headOnly mode