allow tail=num as well as tail=true