better tab and split handling