add prompt_callbacks for head&tail